package com.bizfx.component.fields
{
	import flash.events.IEventDispatcher;
	
	import com.bizfx.component.views.IDetailView;
	import com.bizfx.component.views.IView;

	public interface IField extends IEventDispatcher
	{
		function get fieldKey():String;
		function set fieldKey(value:String):void;

		function get data():Object;
		function set data(value:Object):void;
		
		/**
		 * 绑定视图数据的属性名称
		 */
		function get bindProperty():String;
		function set bindProperty(value:String):void;
		
		/**
		 * 是否只读状态。
		 */
		function get readOnly():Boolean;
		function set readOnly(value:Boolean):void;
		
		/**
		 * 所属视图
		 */
//		function get view():IDetailView;
//		function set view(value:IDetailView):void;
	}
}